package com.wxq.search.feign;


import com.wxq.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 *
 */
@FeignClient("yomall-product")
public interface ProductFeignService {

    /**
     * 获取属性信息
     * @param attrId 属性id
     * @return
     */
    @GetMapping("/product/attr/info/{attrId}")
    R getAttrInfo(@PathVariable("attrId") Long attrId);

    /**
     * 品牌查询
     * @param brandIds
     * @return
     */
    @GetMapping("/product/brand/infos")
    R getBrandInfos(@RequestParam("brandIds") List<Long> brandIds);
}
